//标识语言
var language = sessionStorage.getItem("language");
$.i18n.properties({
    name: 'layui',
    path: 'js/layui/i18n/',
    mode: 'map',
    language: language,
    async: false
});

//初始化i18n函数
function i18n(msgKey) {
    try {
        return $.i18n.prop(msgKey);
    } catch (e) {
        return msgKey;
    }
}

function loadProperties() {

    jQuery.i18n.properties({
        name: 'layui', // 资源文件名称
        path: 'js/layui/i18n/', // 资源文件所在目录路径
        mode: 'map', // 模式：变量或 Map
        language: language, // 对应的语言
        cache: true,
        encoding: 'uft-8',
        callback: function () { // 回调方法
            $('.warningTitle').html($.i18n.prop('lan_warningTitle'));
            $('.cautionTitle').html($.i18n.prop('lan_cautionTitle'));
            $('.noteTitle').html($.i18n.prop('lan_noteTitle'));

            $('.lan_preliminaryRqmtsTitle').html($.i18n.prop('lan_preliminaryRqmtsTitle'));
            $('.lan_needPersonnel').html($.i18n.prop('lan_needPersonnel'));
            $('.lan_needSpareParts').html($.i18n.prop('lan_needSpareParts'));
            $('.lan_needEquipment').html($.i18n.prop('lan_needEquipment'));
            $('.lan_needSupply').html($.i18n.prop('lan_needSupply'));
            $('.lan_needSafetyPrecautions').html($.i18n.prop('lan_needSafetyPrecautions'));


            $('.lan_closeRqmts').html($.i18n.prop('lan_closeRqmts'));
            $('.lan_reqCond').html($.i18n.prop('lan_reqCond'));
            $('.lan_person').html($.i18n.prop('lan_person'));
            $('.lan_trade').html($.i18n.prop('lan_trade'));
            $('.lan_personCategoryCode').html($.i18n.prop('lan_personCategoryCode'));
            $('.lan_numRequired').html($.i18n.prop('lan_numRequired'));
            $('.lan_name').html($.i18n.prop('lan_name'));
            $('.lan_shortName').html($.i18n.prop('lan_shortName'));
            $('.lan_partNumber').html($.i18n.prop('lan_partNumber'));
            $('.lan_partNumberValue').html($.i18n.prop('lan_partNumberValue'));
            $('.lan_reqQuantityValue').html($.i18n.prop('lan_reqQuantityValue'));
            $('.lan_reqQuantity').html($.i18n.prop('lan_reqQuantity'));
            $('.lan_estimatedTime').html($.i18n.prop('lan_estimatedTime'));
            $('.lan_useFile').html($.i18n.prop('lan_useFile'));
            $('.lan_abstractTitle').html($.i18n.prop('lan_abstractTitle'));
            $('.lan_abstractCode').html($.i18n.prop('lan_abstractCode'));
            $('.lan_term').html($.i18n.prop('lan_term'));
            $('.lan_definition').html($.i18n.prop('lan_definition'));
            $('.if-title').html($.i18n.prop('if-title'));
            $('.lan_operation').html($.i18n.prop('lan_operation'));
            $('.lan_response').html($.i18n.prop('lan_response'));
            $('.lan_back').html($.i18n.prop('lan_back'));
            $('.lan_next').html($.i18n.prop('lan_next'));


            $('.lan_isolationSteps').html($.i18n.prop('lan_isolationSteps'));
            $('.lan_completeIsolation').html($.i18n.prop('lan_completeIsolation'));
            $('.lan_return').html($.i18n.prop('lan_return'));
            $('.fault-quiz-title').html($.i18n.prop('fault-quiz-title'));
            $('.lan_remark').html($.i18n.prop('lan_remark'));
            $('.fault-title').html($.i18n.prop('fault-title'));
            $('.noConds').html($.i18n.prop('noConds'));
            $('.noSupplies').html($.i18n.prop('noSupplies'));
            $('.noSpares').html($.i18n.prop('noSpares'));
            $('.noSafety').html($.i18n.prop('noSafety'));
            $('.lan_condition').html($.i18n.prop('lan_condition'));
            $('.lan_model').html($.i18n.prop('lan_model'));
            //  ipd_view.xsl
            $('.lan_figureItemNumber').html($.i18n.prop('lan_figureItemNumber'));
            $('.lan_description').html($.i18n.prop('lan_description'));
            $('.lan_supplierCode').html($.i18n.prop('lan_supplierCode'));
            $('.lan_unit').html($.i18n.prop('lan_unit'));
            $('.lan_specialStorage').html($.i18n.prop('lan_specialStorage'));
            $('.lan_several').html($.i18n.prop('lan_several'));
            $('.lan_onDemand').html($.i18n.prop('lan_onDemand'));
            $('.lan_yesReason').html($.i18n.prop('lan_yesReason'));
            $('.lan_noReason').html($.i18n.prop('lan_noReason'));
            $('.lan_yes').html($.i18n.prop('lan_yes'));
            $('.lan_no').html($.i18n.prop('lan_no'));
            $('.lan_reason').html($.i18n.prop('lan_reason'));
            $('.lan_nonEssentialAccessories').html($.i18n.prop('lan_nonEssentialAccessories'));
            $('.lan_wearAndTear').html($.i18n.prop('lan_wearAndTear'));
            $('.lan_lose').html($.i18n.prop('lan_lose'));
            $('.lan_shake').html($.i18n.prop('lan_shake'));
            $('.lan_corrosion').html($.i18n.prop('lan_corrosion'));
            $('.lan_deteriorate').html($.i18n.prop('lan_deteriorate'));
            $('.lan_extremeTemperature').html($.i18n.prop('lan_extremeTemperature'));
            $('.lan_accidentalDamageInsurance').html($.i18n.prop('lan_accidentalDamageInsurance'));
            $('.lan_other').html($.i18n.prop('lan_other'));
            $('.lan_ipdtitle').html($.i18n.prop('lan_ipdtitle'));

            //  proced_view.xsl
            $('.lan_proced').html($.i18n.prop('lan_proced'));
            $('.lan_step').html($.i18n.prop('lan_step'));
            $('.btnStock').html($.i18n.prop('btnStock'));
            $('.btnPerson').html($.i18n.prop('btnPerson'));
            $('.addbtnStock').html($.i18n.prop('addbtnStock'));
            $('.addbtnPerson').html($.i18n.prop('addbtnPerson'));
            $('.noSupportEquips').html($.i18n.prop('noSupportEquips'));
            $('.lan_accuracy').html($.i18n.prop('lan_accuracy'));
            $('.lan_specification').html($.i18n.prop('lan_specification'));
            $('.lan_quantity').html($.i18n.prop('lan_quantity'));
            $('.lan_stock').html($.i18n.prop('lan_stock'));
            $('.lan_use').html($.i18n.prop('lan_use'));
            $('.lan_proremark').html($.i18n.prop('lan_proremark'));
            $('.lan_materialCode').html($.i18n.prop('lan_materialCode'));

            $('.lan_preliminaryRqmts').html($.i18n.prop('lan_preliminaryRqmts'));

            $('.lan_category').html($.i18n.prop('lan_category'));
            $('.lan_profession').html($.i18n.prop('lan_profession'));
            $('.lan_skill').html($.i18n.prop('lan_skill'));
            $('.lan_timeConsuming').html($.i18n.prop('lan_timeConsuming'));
            $('.lan_numberOfPeople').html($.i18n.prop('lan_numberOfPeople'));
            $('.lan_canbeDeployed').html($.i18n.prop('lan_canbeDeployed'));

            //schedul_view.xsl
            $('.lan_periodicMaintenance').html($.i18n.prop('lan_periodicMaintenance'));
            $('.lan_serialNumber').html($.i18n.prop('lan_serialNumber'));
            $('.lan_identificationNumber').html($.i18n.prop('lan_identificationNumber'));
            $('.lan_partModel').html($.i18n.prop('lan_partModel'));
            $('.lan_amount').html($.i18n.prop('lan_amount'));
            $('.lan_period').html($.i18n.prop('lan_period'));
            $('.lan_threshold').html($.i18n.prop('lan_threshold'));
            $('.lan_thresholdMeasurementUnit').html($.i18n.prop('lan_thresholdMeasurementUnit'));
            $('.lan_overhaulInterval').html($.i18n.prop('lan_overhaulInterval'));
            $('.lan_difficultMoments').html($.i18n.prop('lan_difficultMoments'));
            $('.lan_lastMaintenance').html($.i18n.prop('lan_lastMaintenance'));
            $('.lan_timeLimit').html($.i18n.prop('lan_timeLimit'));
            $('.lan_accordingToTheConditions').html($.i18n.prop('lan_accordingToTheConditions'));
            $('.lan_maintenanceInspection').html($.i18n.prop('lan_maintenanceInspection'));
            $('.lan_functionCheck').html($.i18n.prop('lan_functionCheck'));
            $('.lan_flightDuration').html($.i18n.prop('lan_flightDuration'));
            $('.lan_flightCycle').html($.i18n.prop('lan_flightCycle'));
            $('.lan_month').html($.i18n.prop('lan_month'));
            $('.lan_week').html($.i18n.prop('lan_week'));
            $('.lan_year').html($.i18n.prop('lan_year'));
            $('.lan_day').html($.i18n.prop('lan_day'));
            $('.lan_supersonicPeriod').html($.i18n.prop('lan_supersonicPeriod'));
            $('.lan_stressCycle').html($.i18n.prop('lan_stressCycle'));
            $('.lan_engineCycle').html($.i18n.prop('lan_engineCycle'));
            $('.lan_shopVisit').html($.i18n.prop('lan_shopVisit'));
            $('.lan_auxiliary').html($.i18n.prop('lan_auxiliary'));
            $('.lan_landingGear').html($.i18n.prop('lan_landingGear'));
            $('.lan_wheel').html($.i18n.prop('lan_wheel'));
            $('.lan_landingGear').html($.i18n.prop('lan_landingGear'));
            $('.lan_engineStart').html($.i18n.prop('lan_engineStart'));
            $('.lan_aPU').html($.i18n.prop('lan_aPU'));
            $('.lan_engineTime').html($.i18n.prop('lan_engineTime'));
            $('.lan_operationHours').html($.i18n.prop('lan_operationHours'));
            $('.lan_landing').html($.i18n.prop('lan_landing'));
            $('.lan_serviceCycle').html($.i18n.prop('lan_serviceCycle'));
            $('.lan_usageTime').html($.i18n.prop('lan_usageTime'));
            $('.lan_supersonic').html($.i18n.prop('lan_supersonic'));
            $('.lan_A').html($.i18n.prop('lan_A'));
            $('.lan_B').html($.i18n.prop('lan_B'));
            $('.lan_C').html($.i18n.prop('lan_C'));
            $('.lan_D').html($.i18n.prop('lan_D'));

            $('.lan_daily').html($.i18n.prop('lan_daily'));
            $('.lan_E').html($.i18n.prop('lan_E'));
            $('.lan_allNight').html($.i18n.prop('lan_allNight'));
            $('.lan_beforeTheFlight').html($.i18n.prop('lan_beforeTheFlight'));
            $('.lan_routine').html($.i18n.prop('lan_routine'));
            $('.lan_structure').html($.i18n.prop('lan_structure'));
            $('.lan_serviceInspection').html($.i18n.prop('lan_serviceInspection'));
            $('.lan_borderCrossing').html($.i18n.prop('lan_borderCrossing'));
            $('.nextPlan').html($.i18n.prop('nextPlan'));
            $('.addPlan').html($.i18n.prop('addPlan'));
            $('.limitTitle').html($.i18n.prop('limitTitle'));
            $('.lan_sampling').html($.i18n.prop('lan_sampling'));
            $('.lan_triggeringConditions').html($.i18n.prop('lan_triggeringConditions'));
            $('.lan_limitRange').html($.i18n.prop('lan_limitRange'));
            $('.triggerTitle').html($.i18n.prop('triggerTitle'));
            $('.lan_lowLevel').html($.i18n.prop('lan_lowLevel'));
            $('.lan_meLow').html($.i18n.prop('lan_meLow'));
            $('.lan_meHight').html($.i18n.prop('lan_meHight'));
            $('.lan_highLevel').html($.i18n.prop('lan_highLevel'));
            $('.lan_checkType').html($.i18n.prop('lan_checkType'));
            $('.lan_limitThreshold').html($.i18n.prop('lan_limitThreshold'));
            $('.lan_limitUnit').html($.i18n.prop('lan_limitUnit'));
            $('.lan_category').html($.i18n.prop('lan_category'));
            $('.lan_profession').html($.i18n.prop('lan_profession'));
            $('.lan_skill').html($.i18n.prop('lan_skill'));
            $('.lan_timeConsuming').html($.i18n.prop('lan_timeConsuming'));
            $('.lan_numberOfPeople').html($.i18n.prop('lan_numberOfPeople'));

            // wrndata_view.xsl
            $('.lan_lineIdentification').html($.i18n.prop('lan_lineIdentification'));
            $('.lan_theInception').html($.i18n.prop('lan_theInception'));
            $('.lan_ending').html($.i18n.prop('lan_ending'));
            $('.lan_routeInformation').html($.i18n.prop('lan_routeInformation'));
            $('.lan_typeStandard').html($.i18n.prop('lan_typeStandard'));
            $('.lan_length').html($.i18n.prop('lan_length'));
            $('.lan_color').html($.i18n.prop('lan_color'));

            $('.lan_responsibleCompany').html($.i18n.prop('lan_responsibleCompany'));
            $('.lan_functionDescription').html($.i18n.prop('lan_functionDescription'));
            $('.lan_illustrationReference').html($.i18n.prop('lan_illustrationReference'));
            $('.lan_wrngpartNumber').html($.i18n.prop('lan_wrngpartNumber'));
            $('.lan_connectionType').html($.i18n.prop('lan_connectionType'));
            $('.lan_responsibleCompanyCode').html($.i18n.prop('lan_responsibleCompanyCode'));
            $('.lan_installationLocation').html($.i18n.prop('lan_installationLocation'));
            $('.lan_installSuperior').html($.i18n.prop('lan_installSuperior'));
            $('.lan_installationLogo').html($.i18n.prop('lan_installationLogo'));
            $('.lan_deviceDescription').html($.i18n.prop('lan_deviceDescription'));
            $('.lan_wrnglogo').html($.i18n.prop('lan_wrnglogo'));
            $('.lan_identification').html($.i18n.prop('lan_identification'));
            $('.lan_version').html($.i18n.prop('lan_version'));
            $('.lan_harnessName').html($.i18n.prop('lan_harnessName'));
            $('.lan_dividerCode').html($.i18n.prop('lan_dividerCode'));
            $('.lan_temperature').html($.i18n.prop('lan_temperature'));

            $('.lan_environment').html($.i18n.prop('lan_environment'));
            $('.lan_sleeveInformation').html($.i18n.prop('lan_sleeveInformation'));
            $('.lan_highFrequencyVibration').html($.i18n.prop('lan_highFrequencyVibration'));
            $('.lan_nonHigh').html($.i18n.prop('lan_nonHigh'));
            $('.lan_hydraulic').html($.i18n.prop('lan_hydraulic'));
            $('.lan_thHydraulic').html($.i18n.prop('lan_thHydraulic'));
            $('.lan_material').html($.i18n.prop('lan_material'));
            $('.lan_sleeve').html($.i18n.prop('lan_sleeve'));

            //crew_copy.xsl, descript_copy.xsl
            $(".lan-codeText").html($.i18n.prop('lan-codeText'));
            $(".lan-release-date").html($.i18n.prop('lan-release-date'));
            $(".lan-use-files").html($.i18n.prop('lan-use-files'));
            $(".lan-title").html($.i18n.prop('lan-title'));
            $(".lan-standard-coding").html($.i18n.prop('lan-standard-coding'));
            $(".lan-warn").html($.i18n.prop('lan-warn'));
            $(".lan-notice").html($.i18n.prop('lan-notice'));
            $(".lan-condition").html($.i18n.prop('lan-condition'));
            $(".lan-operate").html($.i18n.prop('lan-operate'));
            $(".lan-response").html($.i18n.prop('lan-response'));
            $(".lan-marking-number").html($.i18n.prop('lan-marking-number'));
            $(".lan-description").html($.i18n.prop('lan-description'));
            $(".lan-name").html($.i18n.prop('lan-name'));

            //descript_copy.xsl
            $(".lan-fault-description").html($.i18n.prop('lan-fault-description'));
            $(".lan-preparation-work").html($.i18n.prop('lan-preparation-work'));
            $(".lan-no").html($.i18n.prop('lan-no'));
            $(".lan-need-personnel").html($.i18n.prop('lan-need-personnel'));
            $(".lan-full-name").html($.i18n.prop('lan-full-name'));
            $(".lan-category").html($.i18n.prop('lan-category'));
            $(".lan-skill").html($.i18n.prop('lan-skill'));
            $(".lan-profession").html($.i18n.prop('lan-profession'));
            $(".lan-time-consuming").html($.i18n.prop('lan-time-consuming'));
            $(".lan-need-equipment").html($.i18n.prop('lan-need-equipment'));
            $(".lan-abbreviation").html($.i18n.prop('lan-abbreviation'));
            $(".lan-identifier").html($.i18n.prop('lan-identifier'));
            $(".lan-quantity").html($.i18n.prop('lan-quantity'));
            $(".lan-remark").html($.i18n.prop('lan-remark'));
            $(".lan-consumables").html($.i18n.prop('lan-consumables'));
            $(".lan-spare-parts").html($.i18n.prop('lan-spare-parts'));
            $(".lan-safety-conditions").html($.i18n.prop('lan-safety-conditions'));
            $(".lan-fault-code").html($.i18n.prop('lan-fault-code'));
            $(".lan-required-condition").html($.i18n.prop('lan-required-condition'));
            $(".lan-sdoip").html($.i18n.prop('lan-sdoip'));
            $(".lan-finishing-work").html($.i18n.prop('lan-finishing-work'));
            $(".lan-catalog-number").html($.i18n.prop('lan-catalog-number'));
            $(".lan-part-model").html($.i18n.prop('lan-part-model'));
            $(".lan-supplier-id").html($.i18n.prop('lan-supplier-id'));
            $(".lan-unit").html($.i18n.prop('lan-unit'));
            $(".lan-special-storage").html($.i18n.prop('lan-special-storage'));
            $(".lan-describe").html($.i18n.prop('lan-describe'));
            $(".lan-yes").html($.i18n.prop('lan-yes'));
            $(".lan-no2").html($.i18n.prop('lan-no2'));
            $(".lan-remind").html($.i18n.prop('lan-remind'));

            // fault_copy.xsl
            $(".lan-isolation-procedure-steps").html($.i18n.prop('lan-isolation-procedure-steps'));
            $(".lan-fault-question").html($.i18n.prop('lan-fault-question'));
            $(".lan-no-next-step").html($.i18n.prop('lan-no-next-step'));
            $(".lan-yes-next-step").html($.i18n.prop('lan-yes-next-step'));
            $(".lan-end").html($.i18n.prop('lan-end'));
            $(".lan-requirement").html($.i18n.prop('lan-requirement'));

            // proced_copy.xsl
            $(".lan-guarantee-equipment").html($.i18n.prop('lan-guarantee-equipment'));
            $(".lan-program").html($.i18n.prop('lan-program'));
            $(".lan-step").html($.i18n.prop('lan-step'));

            // schedul_copy.xsl
            $(".lan-task-id").html($.i18n.prop('lan-task-id'));
            $(".lan-task-code").html($.i18n.prop('lan-task-code'));
            $(".lan-required-level").html($.i18n.prop('lan-required-level'));
            $(".lan-simplify-maintenance").html($.i18n.prop('lan-simplify-maintenance'));
            $(".lan-task-brief").html($.i18n.prop('lan-task-brief'));
            $(".lan-source-of-demand").html($.i18n.prop('lan-source-of-demand'));
            $(".lan-source-id").html($.i18n.prop('lan-source-id'));
            $(".lan-license").html($.i18n.prop('lan-license'));
            $(".lan-event-number").html($.i18n.prop('lan-event-number'));
            $(".lan-working-status").html($.i18n.prop('lan-working-status'));
            $(".lan-event-time").html($.i18n.prop('lan-event-time'));
            $(".lan-source-type-number").html($.i18n.prop('lan-source-type-number'));
            $(".lan-type-of-failure").html($.i18n.prop('lan-type-of-failure'));
            $(".lan-initial-demand").html($.i18n.prop('lan-initial-demand'));
            $(".lan-condition-requirements").html($.i18n.prop('lan-condition-requirements'));
            $(".lan-personnel-requirements").html($.i18n.prop('lan-personnel-requirements'));
            $(".lan-equipment-requirements").html($.i18n.prop('lan-equipment-requirements'));
            $(".lan-supply-requirements").html($.i18n.prop('lan-supply-requirements'));
            $(".lan-spare-parts-requirements").html($.i18n.prop('lan-spare-parts-requirements'));
            $(".lan-device-list").html($.i18n.prop('lan-device-list'));
            $(".lan-device-name").html($.i18n.prop('lan-device-name'));
            $(".lan-manufacturer-number").html($.i18n.prop('lan-manufacturer-number'));
            $(".lan-part-number").html($.i18n.prop('lan-part-number'));
            $(".lan-cycle").html($.i18n.prop('lan-cycle'));
            $(".lan-inspection-category").html($.i18n.prop('lan-inspection-category'));
            $(".lan-before-use").html($.i18n.prop('lan-before-use'));
            $(".lan-after-use").html($.i18n.prop('lan-after-use'));
            $(".lan-before-and-after-use").html($.i18n.prop('lan-before-and-after-use'));
            $(".lan-task-number").html($.i18n.prop('lan-task-number'));
            $(".lan-task-name").html($.i18n.prop('lan-task-name'));
            $(".lan-task-description").html($.i18n.prop('lan-task-description'));
            $(".lan-periodical-maintenance").html($.i18n.prop('lan-periodical-maintenance'));
            $(".lan-serial-number").html($.i18n.prop('lan-serial-number'));
            $(".lan-threshold").html($.i18n.prop('lan-threshold'));
            $(".lan-threshold-measurement-unit").html($.i18n.prop('lan-threshold-measurement-unit'));

            // wrngdata_copy.xsl
            $(".lan-starting-device-code").html($.i18n.prop('lan-starting-device-code'));
            $(".lan-target-device-code").html($.i18n.prop('lan-target-device-code'));
            $(".lan-line-information").html($.i18n.prop('lan-line-information'));
            $(".lan-type-diameter").html($.i18n.prop('lan-type-diameter'));
            $(".lan-length").html($.i18n.prop('lan-length'));
            $(".lan-color").html($.i18n.prop('lan-color'));
            $(".lan-liability-company").html($.i18n.prop('lan-liability-company'));
            $(".lan-part-number2").html($.i18n.prop('lan-part-number2'));
            $(".lan-harness-difference-mark").html($.i18n.prop('lan-harness-difference-mark'));
            $(".lan-harness-difference-version").html($.i18n.prop('lan-harness-difference-version'));
            $(".lan-harness-name").html($.i18n.prop('lan-harness-name'));
            $(".lan-harness-divider-code").html($.i18n.prop('lan-harness-divider-code'));
            $(".lan-temperature-minimum-maximum").html($.i18n.prop('lan-temperature-minimum-maximum'));
            $(".lan-ehvh").html($.i18n.prop('lan-ehvh'));
            $(".lan-responsible-company-code").html($.i18n.prop('lan-responsible-company-code'));
            $(".lan-sleeve-material").html($.i18n.prop('lan-sleeve-material'));
            $(".lan-sleeve-part-number").html($.i18n.prop('lan-sleeve-part-number'));
            $(".lan-reference-code").html($.i18n.prop('lan-reference-code'));
            $(".lan-connection-class").html($.i18n.prop('lan-connection-class'));
            $(".lan-installation-location").html($.i18n.prop('lan-installation-location'));
        }
    });
}


